package com.ruoyi.ora.domain;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.entity.SysUser;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 评论对象 ora_assets_comment
 * 
 * @author liuwp
 * @date 2025-04-10
 */
public class AssetsComment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 资产id */
    @Excel(name = "资产id")
    private Long assetsId;

    /** 上级评论id */
    @Excel(name = "上级评论id")
    private Long parentId;

    /** 评论类型 */
    @Excel(name = "评论类型", dictType = "ora_assets_type")
    private Integer commentType;

    /** 内容 */
    @Excel(name = "内容")
    private String content;

    private String voicePath;

    /** 删除时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "删除时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deleteTime;

    private SysUser sysUser;

    public String getVoicePath() {
        return voicePath;
    }

    public void setVoicePath(String voicePath) {
        this.voicePath = voicePath;
    }

    public SysUser getSysUser() {
        return sysUser;
    }

    public void setSysUser(SysUser sysUser) {
        this.sysUser = sysUser;
    }

    private List<AssetsComment> childrens;

    public List<AssetsComment> getChildrens() {
        return childrens;
    }

    public void setChildrens(List<AssetsComment> childrens) {
        this.childrens = childrens;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setAssetsId(Long assetsId) 
    {
        this.assetsId = assetsId;
    }

    public Long getAssetsId() 
    {
        return assetsId;
    }
    public void setParentId(Long parentId) 
    {
        this.parentId = parentId;
    }

    public Long getParentId() 
    {
        return parentId;
    }
    public void setCommentType(Integer commentType) 
    {
        this.commentType = commentType;
    }

    public Integer getCommentType() 
    {
        return commentType;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setDeleteTime(Date deleteTime) 
    {
        this.deleteTime = deleteTime;
    }

    public Date getDeleteTime() 
    {
        return deleteTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("assetsId", getAssetsId())
            .append("parentId", getParentId())
            .append("commentType", getCommentType())
            .append("content", getContent())
            .append("createTime", getCreateTime())
            .append("deleteTime", getDeleteTime())
            .toString();
    }
}
